<div class="col-md-3">
	<div class="row" id="sidebar">
		
		<?php if(count($relatedCategories) > 0): ?>
			<div id="categories">
				<h3>
					<?php echo translate("related_categories"); ?>
				</h3>
				
				
				<ul>
					<?php foreach($relatedCategories as $superCat):	?>
	                    
	                    <?php
							$linkDetails = 'href="'.$page["children_url"].$superCat["url"].'"';
	                    ?>
	                    
	                    <li>                
	                        <a <?php echo $linkDetails; ?> title="<?php echo $superCat["name"]; ?>"><?php echo $superCat["name"]; ?></a>
	                        
	                        <?php if(isset($superCat["children"])): ?>
	                         	<ul>
	                         		<?php foreach($superCat["children"] as $childCat): ?>
	                         			<?php
											$linkDetails = 'href="'.$page["children_url"].$childCat["url"].'"';
	                         			?>
                         			 	<li>                   
	                        				<a <?php echo $linkDetails; ?> title="<?php echo $childCat["name"]; ?>"><?php echo $childCat["name"]; ?></a>
	                        				
	                        				 <?php if(isset($childCat["children"])): ?>
					                         	<ul>
					                         		<?php foreach($childCat["children"] as $subCat): ?>
					                         			<?php
															$linkDetails = 'href="'.$page["children_url"].$subCat["url"].'"';
					                         			?>
				                         			 	<li>                   
					                        				<a <?php echo $linkDetails; ?> title="<?php echo $subCat["name"]; ?>"><?php echo $subCat["name"]; ?></a>
					                        				
					                        				
					                        			</li>
					                         			
					                         		<?php endforeach; ?>
					                         	</ul>
				                         	<?php endif; ?>
	                        				
	                        			</li>
	                         			
	                         		<?php endforeach; ?>
	                         	</ul>
                         	<?php endif; ?>
                     	</li>
	                    <?php endforeach; ?>
	                </ul>
				
			</div>
		<?php endif; ?>
		
		<div class="promoHolder">
			<img class="" src="<?php echo scripts_url(); ?>img/amann-group.jpg" />
		</div>
		
	</div>
</div> <!--END SIDEBAR -->